﻿using System.IO;


namespace RemoteData.common
{
    public class FileManager
    {
        public FileManager()
        {
            Init();
        }

        private int Init()
        {
            int rn = 0;

            progRootDIR = Directory.GetCurrentDirectory();

            confRootDIR = string.Format("{0}\\{1}", progRootDIR, "conf"); // 配置文件目录

            logConfigFile = string.Format("{0}\\{1}", progRootDIR, "logConfig\\log4net.config"); //日志配置

            globalSettingFile = string.Format("{0}\\{1}", confRootDIR, "global_setting.xml"); //全局配置

            return rn;
        }

        // 根目录
        public string progRootDIR;
        // 配置根目录
        public string confRootDIR;

        // 日志配置文件路径
        public string logConfigFile;

        // 全局配置文件
        internal string globalSettingFile;
    }
}
